﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using CMS.BL.Entity;
using System.Web.Mvc;

namespace CMS.UI.Models
{
    public class DomainModel
    {
        public int DomainID { get; set; }
        [Display(Name = "Comapny Address")]
        public string DO_CompanyAddress { get; set; }
        [Display(Name = "Company Name")]
        public string DO_CompanyName { get; set; }
        [Display(Name = "Company Telephone")]
        public string DO_CompanyTelephone { get; set; }
        [Display(Name = "Consumer Key")]
        public string DO_ConsumerKey { get; set; }
        [Display(Name = "Consumer Secret")]
        public string DO_ConsumerSecret { get; set; }
        [Display(Name = "Stylesheet")]
        public string DO_CSS { get; set; }
        [Display(Name = "Default Language ID")]
        public int? DO_DefaultLangID { get; set; }
        [Display(Name = "Domain")]
        [Required(ErrorMessage = "Domain Name is required.")]
        [RegularExpression("^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}$", ErrorMessage = "Domain Name should have a correct format.")]
        public string DO_Domain { get; set; }
        [Display(Name = "Email address")]
        public string DO_Email { get; set; }
        [Display(Name = "Google Analytics")]
        public string DO_GoogleAnalytics { get; set; }
        [Display(Name = "Google Analytics Code")]
        [AllowHtml]
        public string DO_GoogleAnalyticsCode { get; set; }
        [Display(Name = "Google Analytics")]
        public bool DO_GoogleAnalyticsVisible { get; set; }
        [Display(Name = "Home Page ID")]
        public int DO_HomePageID { get; set; }
        [Display(Name = "Site Launch Year")]
        public int? DO_LaunchYear { get; set; }
        [Display(Name = "Share This ID")]
        public string DO_ShareThis { get; set; }
        [Display(Name = "Twitter Secret")]
        public string DO_TwitterSecret { get; set; }
        [Display(Name = "Twitter Token")]
        public string DO_TwitterToken { get; set; }
        [Display(Name = "Update Twitter")]
        public bool DO_UpdateTwitter { get; set; }
    }
}